package com.cloud.shopping.goods.service;

import com.cloud.shopping.goods.model.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 商品类目 服务类
 * </p>
 *
 * @author John.zhang
 * @since 2020-12-28
 */
public interface CategoryService extends IService<Category> {

    /**
     * 根据分类父ID查询所有子类
     * @param pid pid
     * @return List
     */
    List<Category> findByParentId(Integer pid);
}
